import { createRouter, createWebHistory } from 'vue-router'


const routes = [
  {
    path: '/',
    redirect: '/explore'
  },
  {
    path: '/explore',
    name: 'explore',
    component: () => import ("@/views/explore/index.vue")
  },
  {
    path: '/editor',
    name: 'editor',
    component: () => import ("@/views/editor/index.vue")
  },
]

const Router = createRouter({
  history: createWebHistory(),
  // history: createWebHashHistory(),
  routes: routes
})

export default Router